package com.class05.static1.d_var;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2024/4/11 9:25
 */
public class Demo01Var {
    public static void sum(int... arr){
        int sum = 0;
        for(int i=0;i<arr.length;i++){
            sum+=arr[i];
        }
        System.out.println(sum);
    }


    public static void main(String[] args) {
        sum(15,3,6,7,5,8,67,98);
    }
}
